package com.Design.Chain.now;

import com.Design.Chain.Request;

/**
 * @Author Lc
 * @Date 2023/9/29
 * @PackageName: com.Design.Chain.now
 * @ClassName: MainGo
 * @Description:
 */

public class MainGo {

    public static void main(String[] args) {
        Request request = new Request();
        request.setMessage("想要回家，请个假");
        request.setRequestType("请假");
        request.setNumber(4);
        Manager manager2 = new Majordomo("老李", "总监");
        Manager manager1 = new Executive("老军", "经理");
        manager1.setManager(manager2);
        manager1.getResult(request);
    }

}
